/* Overlay for all popups */
.popup-modal-overlay {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.popup-modal-content {
    position: relative;
    background-color: var(--popup-background-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 16px;
    box-sizing: border-box;
    max-height: 90vh;
    width: 90%;
    max-width: 30vw;
    overflow-y: auto;
    transform: translateY(-10%) scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-modal-overlay.show .popup-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Footer text */
.popup-footer-container {
    color: var(--non-selected-text-color);
    margin-top: 16px;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

/* Buttons container */
.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}